// 自动生成模板Article
package model

import (
	"gin-vue-admin/global"
)

// 如果含有time.Time 请自行import time包
type Article struct {
      global.GVA_MODEL
      ArticleTitle  string `json:"articleTitle" form:"articleTitle" gorm:"column:article_title;comment:文章标题;type:varchar(255);size:255;"`
      Des  string `json:"des" form:"des" gorm:"column:des;comment:文章描述;type:varchar(255);size:255;"`
      ArticleSort  int `json:"articleSort" form:"articleSort" gorm:"column:article_sort;comment:文章排序;type:int;size:10;"`
      ArticleSwtich  string `json:"articleSwtich" form:"articleSwtich" gorm:"column:article_swtich;comment:是否展示;type:varchar(255);size:255;"`
      ArticleClass  string `json:"articleClass" form:"articleClass" gorm:"column:article_class;comment:分类;type:int;size:255;"`
      ArticleCover  string `json:"articleCover" form:"articleCover" gorm:"column:article_cover;comment:封面;type:text;"`
      ArticleDetail  string `json:"articleDetail" form:"articleDetail" gorm:"column:article_detail;comment:详情;type:longtext();size:;"`
      Class ArticleClass `gorm:"foreignkey:ID;association_autoupdate:false"`
}
type ArticleandClass struct {
      global.GVA_MODEL
      ArticleTitle  string `json:"articleTitle" form:"articleTitle" gorm:"column:article_title;comment:文章标题;type:varchar(255);size:255;"`
      Des  string `json:"des" form:"des" gorm:"column:des;comment:文章描述;type:varchar(255);size:255;"`
      ArticleSort  int `json:"articleSort" form:"articleSort" gorm:"column:article_sort;comment:文章排序;type:int;size:10;"`
      ArticleSwtich  string `json:"articleSwtich" form:"articleSwtich" gorm:"column:article_swtich;comment:是否展示;type:varchar(255);size:255;"`
      ArticleClass  string `json:"articleClass" form:"articleClass" gorm:"column:article_class;comment:分类;type:int;size:255;"`
      ArticleCover  string `json:"articleCover" form:"articleCover" gorm:"column:article_cover;comment:封面;type:text;"`
      ArticleDetail  string `json:"articleDetail" form:"articleDetail" gorm:"column:article_detail;comment:详情;type:longtext();size:;"`
      Title  string `json:"title" form:"title" gorm:"column:title;comment:分类标题;type:varchar(255);size:255;"`
      Cover_img  string `json:"cover_img" form:"cover_img" gorm:"column:cover_img;comment:封面图;type:varchar(255);size:255;"`
      Sort  int `json:"sort" form:"sort" gorm:"column:sort;comment:排序;type:int;"`
      Is_show  int `json:"is_show" form:"is_show" gorm:"column:is_show;comment:是否展示"`
}

func (Article) TableName() string {
  return "article"
}
